package liurong.driver.hashmap;

import java.util.ArrayList;
import java.util.Collections;

import org.junit.jupiter.api.Test;

public class ArrayListTest {

	@Test
	public void test1() {
		ArrayList<Integer> arrayList = new ArrayList<Integer>();

		arrayList.add(null);
		arrayList.add(null);
		arrayList.add(null);

		System.out.println(arrayList);

		arrayList.remove(null);

		arrayList.removeAll(Collections.singleton(null));

		System.out.println(arrayList);
	}
}
